
#include <BMainWindow>
#include <BViewer>
#include <BSampler>
#include <BButton>
#include <BLabel>
#include <BImage>
#include <BReadWrite>
#include <BSpacer>
#include <BHBoxLayout>
#include <BApplication>

using namespace BWE;

int main(int argc, int argv)
{
	BApplication app;
	app.setFont("times");
	app.setFrequency(100);

	MoveChannel* channel = new MoveChannel();
	channel->setTargetName("label");
	channel->addKeyframe(0, BPointd(20, 20));
	channel->addKeyframe(2, BPointd(100, 300));
	channel->addKeyframe(3, BPointd(160, 200));
	channel->addKeyframe(4, BPointd(20, 20));

	BAnimation* animation = new BAnimation();
	animation->setDuration(4.1);
	animation->addChannel(channel);
	animation->start();

	BImage* image = Read<BImage>("data/ui/neon/neon_004.png");

	BLabel* label = new BLabel(image);
	label->setName("label");
	label->setAnimation(animation);

	BMainWindow* mw = new BMainWindow();
	mw->addChild(label);
	mw->show();

	return app.execute();
}